package cn.yuanqiao.archive.collection.danganjieshou.domain;

import cn.yuanqiao.common.annotation.Excel;
import cn.yuanqiao.common.exception.ServiceException;
import cn.yuanqiao.common.utils.StringUtils;
import cn.yuanqiao.common.core.domain.BaseEntity;
import cn.yuanqiao.common.utils.SecurityUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 馆藏文件接收电子件对象
 *
 * @ProjectName: JZSDAS
 * @Package: cn.yuanqiao.collection.danganjieshou.domain
 * @ClassName: YqGcReceiveEfile
 * @Author: lenovo
 * @Description: hbWang
 * @Date: 2023/8/2 15:25
 * @Version: 1.0
 */

public class YqGcReceiveEfile extends BaseEntity {
    private static final long serialVersionUID = 1L;
    private final String BIGTABLENAME = "_YQ_GC_RECEIVE_EFILE";

    private String tableName;

    public YqGcReceiveEfile() {
        String tenantCode = SecurityUtils.getTenantCode();
        if (StringUtils.isEmpty(tenantCode)) {
            throw new ServiceException("TenantCode is null");
        } else {
            this.tableName = tenantCode.toUpperCase() + BIGTABLENAME;
        }
    }


    /**
     * 主键id
     */
    private String id;

    /**
     * 件ID
     */
    @Excel(name = "件ID")
    private String fileId;

    /**
     * 文件地址
     */
    @Excel(name = "文件地址")
    private String path;

    /**
     * 文件名称
     */
    @Excel(name = "文件名称")
    private String fieldName;

    /**
     * 文件大小
     */
    @Excel(name = "文件大小")
    private String docFileSize;

    /**
     * 文件后缀
     */
    @Excel(name = "文件后缀")
    private String docFileType;

    /**
     * 索引状态
     */
    @Excel(name = "索引状态")
    private String isIndex;

    /**
     * 创建人
     */
    @Excel(name = "创建人")
    private String creatorId;

    /**
     * 最后修改人
     */
    @Excel(name = "最后修改人")
    private String lastupdater;

    /**
     * 最后修改时间
     */
    @Excel(name = "最后修改时间")
    private String lastupdateTime;

    /**
     * 是否删除
     */
    @Excel(name = "是否删除")
    private String isDel;

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getDocFileSize() {
        return docFileSize;
    }

    public void setDocFileSize(String docFileSize) {
        this.docFileSize = docFileSize;
    }

    public String getDocFileType() {
        return docFileType;
    }

    public void setDocFileType(String docFileType) {
        this.docFileType = docFileType;
    }

    public String getIsIndex() {
        return isIndex;
    }

    public void setIsIndex(String isIndex) {
        this.isIndex = isIndex;
    }

    public String getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(String creatorId) {
        this.creatorId = creatorId;
    }

    public String getLastupdater() {
        return lastupdater;
    }

    public void setLastupdater(String lastupdater) {
        this.lastupdater = lastupdater;
    }

    public String getLastupdateTime() {
        return lastupdateTime;
    }

    public void setLastupdateTime(String lastupdateTime) {
        this.lastupdateTime = lastupdateTime;
    }

    public String getIsDel() {
        return isDel;
    }

    public void setIsDel(String isDel) {
        this.isDel = isDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("id", id)
                .append("fileId", fileId)
                .append("path", path)
                .append("fieldName", fieldName)
                .append("docFileSize", docFileSize)
                .append("docFileType", docFileType)
                .append("isIndex", isIndex)
                .append("creatorId", creatorId)
                .append("lastupdater", lastupdater)
                .append("lastupdateTime", lastupdateTime)
                .append("isDel", isDel)
                .toString();
    }
}
